package com.thoughtworks;

public class Movies implements Rental{
    public String name;
    public String directorName;
    public int yearOfRelease;
    public int movieRating;

    Movies()
    {
        name =null;
        directorName=null;
        yearOfRelease=0;
        movieRating=0;
    }


    public Movies(String name, String directorName, int yearOfRelease,int movieRating)
    {
        this.name = name;
        this.directorName=directorName;
        this.yearOfRelease=yearOfRelease;
        this.movieRating=movieRating;
    }

    public String getName()
    {
        return name;
    }

    public void getDetail()
    {
        System.out.format("%-50s%-50s%-50d%-50d\n", name, directorName, yearOfRelease, movieRating);

    }

}
